package com.sangeng.constant;

public class SystemConstants
{
    /**
     *  文章是草稿
     */
    public static final int ARTICLE_STATUS_DRAFT = 1;

    /**
     *  文章是正常分布状态
     */
    public static final int ARTICLE_STATUS_NORMAL = 0;

    /**
     * 菜单正常状态
     */
    public static final String STATUS_NORMAL = "0";

    /**
     * 友链审核通过
     */
    public static final String LINK_STATUS_NORMAL = "0";

    /**
     * 未知性别，默认为女
     */
    public static final String USER_SEX_UNKNOWN = "1";

    /**
     * 默认头像
     */
    public static final String DEFAULT_AVATAR = "https://dkd-itheima-temp.oss-cn-beijing.aliyuncs.com/blog/2025/06/20/68551b1139a9a7708103ac6c.png";

    /**
     * 目录类型
     */
    public static final String MENU = "M";

    /**
     * 按钮类型
     */
    public static final String BUTTON = "F";

    /**
     * 角色正常状态
     */
    public static final String ROLE_STATUS_NORMAL = "0";

    /**
     * 子菜单
     */
    public static final String CHILD_MENU = "C";

    /**
     * 菜单正常状态
     */
    public static final Long MENU_STATUS_NORMAL = 0L;

    /**
     * 菜单下有子菜单，请先删除子菜单
     */
    public static final String HAS_CHILDREN = "存在子菜单不允许删除";

    /**
     * 管理员用户类型
     */
    public static final String ADMIN_USER = "1";
    public static final Integer NOT_DELETED = 0;

    /**
     * 父级菜单不能为自己
     */
    public static final String PARENT_ID_ERROR(String menuName){
        return String.format("修改菜单'%s'失败，上级菜单不能选择自己", menuName);
    };

    /**
     * 管理员用户类型
     */
    public static String Admin_USER = "1";
}